import request from '@/utils/request'

// 分页查询某一债权债务分类的债权债务信息
export function webListCreditDebtInfoByLedger(data) {
  return request({
    url: '/bookkeeping/creditDebt/webListCreditDebtInfoByLedger',
    method: 'post',
    data
  })
}

// 新增债权债务
export function addCreditDebtInfo(data) {
  return request({
    url: '/bookkeeping/creditDebt/addCreditDebtInfo',
    method: 'post',
    data
  })
}

// 增加减少债权债务
export function addCreditDebtRecord(data) {
  return request({
    url: '/bookkeeping/creditDebt/addCreditDebtRecord',
    method: 'post',
    data
  })
}

// 获取债权债务记录
export function webQueryCreditDebtRecord(data) {
  return request({
    url: '/bookkeeping/creditDebt/webQueryCreditDebtRecord',
    method: 'post',
    data
  })
}

// 删除债权债务详情
export function deleteCreditDebtRecord(data) {
  return request({
    url: '/bookkeeping/creditDebt/deleteCreditDebtRecord',
    method: 'post',
    data
  })
}

// 修改债权债务详情
export function updateCreditDebtRecord(data) {
  return request({
    url: '/bookkeeping/creditDebt/updateCreditDebtRecord',
    method: 'post',
    data
  })
}

// 债权债务下载打印
export function collectCreditDebtInfoByDirection(data) {
  return request({
    url: '/bookkeeping/creditDebt/collectCreditDebtInfoByDirection',
    method: 'post',
    data
  })
}

